Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gosmee: init at 0.21.0 #284789

Merged
merged 2 commits into from
May 22, 2024
Merged

gosmee: init at 0.21.0 #284789

merged 2 commits into from
May 22, 2024

Conversation

vdemeester
Copy link
Member

@vdemeester vdemeester commented Jan 29, 2024

Description of changes

This adds a new package, gosmee to nixpkgs.

Gosmee enables you to relay webhooks from either itself (as a server) or from https://smee.io to your local laptop or an infrastructure that is not publicly available from the internet.

Gosmee let you easily expose the service on your local network (like a web service on localhost) or behind a VPN, allowing a public service (such as GitHub) push webhooks into it.

For instance, if you configure your GitHub Webhook to direct to a https://smee.io/ URL or where gosmee server is listening, you can then use the gosmee client on your local notebook to obtain the events from the server and forward them to the local service, thereby establishing a connection between the GitHub webhook and your local service on your workstation.

Alternatively if you don't want to use a relay server and use GitHub you can replay the hooks deliveries via the GitHub API.

This also adds @chmouel as a maintainer of this package.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@vdemeester vdemeester added the 8.has: package (new) This PR adds a new package label Jan 29, 2024
@vdemeester vdemeester changed the title gosmee: new package at 0.21.0 gosmee: init at 0.21.0 Feb 5, 2024
@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/prs-ready-for-review/3032/3492

maintainers/maintainer-list.nix Show resolved Hide resolved
pkgs/by-name/go/gosmee/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/go/gosmee/package.nix Outdated Show resolved Hide resolved
pkgs/by-name/go/gosmee/package.nix Outdated Show resolved Hide resolved
@vdemeester
Copy link
Member Author

@SuperSandro2000 updated, thanks for the review 👼🏼

@NixHelp
Copy link

NixHelp commented May 10, 2024

Could we get this into NixOS 24.05? It would be really helpful since the npm module is not in nixpkgs either.

@github-actions github-actions bot added 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` and removed 6.topic: python labels May 17, 2024
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 17, 2024
nativeBuildInputs = [ installShellFiles ];

postPatch = ''
printf ${version} > $sourceRoot/gosmee/templates/version
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
printf ${version} > $sourceRoot/gosmee/templates/version
mkdir -p $sourceRoot/gosmee/templates
printf ${version} > $sourceRoot/gosmee/templates/version
source root is source
Running phase: patchPhase
/nix/store/wq046wv3s3h4m2n9ak3j534di2pzra93-stdenv-linux/setup: line 114: source/gosmee/templates/version: No such file or directory
/nix/store/wq046wv3s3h4m2n9ak3j534di2pzra93-stdenv-linux/setup: line 131: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/l759i5krlyliwbk7lr0jdg3cj4qn0rnf-gosmee-0.21.0.drv' failed with exit code 1;

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in postPatch, PWD already points to /build/source and sourceRoot points to source, so it fails anyway.

Copy link
Member

@SuperSandro2000 SuperSandro2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SuperSandro2000 SuperSandro2000 merged commit 2098d84 into NixOS:master May 22, 2024
25 checks passed
@vdemeester vdemeester deleted the add-gosmee branch May 22, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 11.by: package-maintainer This PR was created by the maintainer of the package it changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants